﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Model
{
    [DataContract]
    public class Review
    {
        [DataMember]
        private int id;
        [DataMember]
        private string text;
        [DataMember]
        private int rank;
        [DataMember]
        private Person person;
        [DataMember]
        private Movie movie;
        [DataMember]
        private DateTime timestamp;

        public Review(int id, string text, int rank,Person person, Movie movie, DateTime timestamp)
        {
            ID = id;
            Text = text;
            Rank = rank;
            Person = person;
            Movie = movie;
            Timestamp = timestamp;
        }

        [DataMember]
        public int ID
        {
            get { return this.id; }
            set { this.id = value; }
        }

        [DataMember]
        public string Text
        {
            get { return this.text; }
            set { this.text = value; }
        }

        [DataMember]
        public int Rank
        {
            get { return this.rank; }
            set { this.rank = value; }
        }

        [DataMember]
        public Person Person
        {
            get { return this.person; }
            set { this.person = value; }
        }

        [DataMember]
        public Movie Movie
        {
            get { return this.movie; }
            set { this.movie = value; }
        }

        [DataMember]
        public DateTime Timestamp
        {
            get { return this.timestamp; }
            set { this.timestamp = value; }
        }
    }
}
